package com.hyy.dao;



import com.hyy.bean.Merchandise;

import java.sql.SQLException;
import java.util.List;

public interface MerchandiseDao {
    List<Merchandise> findAllProducts() throws SQLException;
	List<Merchandise> findProductByKeyword(String keyword) throws SQLException;
	Merchandise findProductById(Long id) throws SQLException;
    boolean outProductById(Long id, Long  num) throws SQLException;
    boolean inProductById(Long  id, Long  num) throws SQLException;
    boolean addProduct(Merchandise merchandise) throws SQLException;
    boolean deleteProduct(Long  id) throws SQLException;
    boolean updateProduct(Merchandise merchandise)throws SQLException;



}
